<?php

namespace apiend\modules\statistic\controllers;

use Yii;
use apiend\components\Controller;
use apiend\modules\statistic\models\OverviewStatsLogic;

/**
 * 概况统计
 * 
 * @author emhome <emhome@163.com>
 * @since 1.0
 */
class DefaultController extends Controller {

    /**
     * @inheritdoc
     */
    public function actionIndex() {
        $model = new OverviewStatsLogic();
        $model->load(Yii::$app->request->getQueryParams(), '');
        if ($this->storeId) {
            $model->store_id = $this->storeId;
        }
        Yii::error($model->attributes);
        return $model->search();
    }

}
